﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kevin.Framework.Core;

namespace Kevin.Framework.Data.OrmMapping
{
    /// <summary>
    /// 条件项的运算符常量
    /// </summary>
    public enum Operator
    {
        #region 条件项的运算符常量定义

        /// <summary>
        /// 等于
        /// </summary>
        [EnumDesc(Description = "等于", ShortName = "=")]
        EqualTo ,

        /// <summary>
        /// 大于等于
        /// </summary>
        [EnumDesc(Description = "大于等于", ShortName = ">=")]
        GreaterThanOrEqualTo,

        /// <summary>
        /// 大于
        /// </summary>
        [EnumDesc(Description = "大于", ShortName = ">")]
        GreaterThan,

        /// <summary>
        /// 小于等于
        /// </summary>
        [EnumDesc(Description = "小于等于", ShortName = "<=")]
        LessThanOrEqualTo,

        /// <summary>
        /// 小于
        /// </summary>
        [EnumDesc(Description = "小于", ShortName = "<")]
        LessThan,

        /// <summary>
        /// 不等于
        /// </summary>
        [EnumDesc(Description = "不等于", ShortName = "<>")]
        NotEqualTo,

        /// <summary>
        /// LIKE运算符
        /// </summary>
        [EnumDesc(Description = "模糊查询", ShortName = "LIKE")]
        Like,

        /// <summary>
        /// IS运算符
        /// </summary>
        [EnumDesc(Description="",ShortName = "IS")]
        Is,

        /// <summary>
        /// IN运算符
        /// </summary>
        [EnumDesc(Description="包含" ,ShortName = "IN")]
        In

        #endregion 条件项的运算符常量定义
    }
}
